var runninng = 0;
function stopjsbot() {runninng = 0;}
function runjsbot() {
if (runninng) { return; } else {
runninng = 1;
runloop();
}
}
function runloop() {
if (window.opener == null) { return; }
var tform = window.opener.document.getElementById('status_update_form');
if (!tform) { return; }
var jikan = eval(document.jsbot.jikan.value);
if (jikan < 10) {
jikan = 10;
document.jsbot.jikan.value = jikan;
}
var text = document.jsbot.ta.value;
var mes = text.split(new RegExp('\r\n|\r|\n'));
if (!mes) { return; }
var tdata = mes[parseInt(Math.random()*mes.length)];
if (tdata != '') {
tform.status.value = tdata;
tform.submit();
}
setTimeout("runloop()", jikan*6000);
}